/////////////////////////////////////////////////////////////////////////////
// Name:        quickconnect.h
// Purpose:     
// Author:      Stephen Whittle
// Modified by: 
// Created:     20/06/2009 19:20:46
// RCS-ID:      
// Copyright:   
// Licence:     
/////////////////////////////////////////////////////////////////////////////

#ifndef _QUICKCONNECT_H_
#define _QUICKCONNECT_H_


/*!
 * Includes
 */

////@begin includes
////@end includes

/*!
 * Forward declarations
 */

////@begin forward declarations
////@end forward declarations

/*!
 * Control identifiers
 */

////@begin control identifiers
#define ID_QUICKCONNECT 10017
#define ID_TEXTCTRL3 10018
#define ID_TEXTCTRL4 10019
#define SYMBOL_QUICKCONNECT_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
#define SYMBOL_QUICKCONNECT_TITLE _("Quick Connect")
#define SYMBOL_QUICKCONNECT_IDNAME ID_QUICKCONNECT
#define SYMBOL_QUICKCONNECT_SIZE wxSize(400, 300)
#define SYMBOL_QUICKCONNECT_POSITION wxDefaultPosition
////@end control identifiers


/*!
 * QuickConnect class declaration
 */

class QuickConnect: public wxDialog
{    
    DECLARE_DYNAMIC_CLASS( QuickConnect )
    DECLARE_EVENT_TABLE()

public:
    /// Constructors
    QuickConnect();
    QuickConnect( wxWindow* parent, wxWindowID id = SYMBOL_QUICKCONNECT_IDNAME, const wxString& caption = SYMBOL_QUICKCONNECT_TITLE, const wxPoint& pos = SYMBOL_QUICKCONNECT_POSITION, const wxSize& size = SYMBOL_QUICKCONNECT_SIZE, long style = SYMBOL_QUICKCONNECT_STYLE );

    /// Creation
    bool Create( wxWindow* parent, wxWindowID id = SYMBOL_QUICKCONNECT_IDNAME, const wxString& caption = SYMBOL_QUICKCONNECT_TITLE, const wxPoint& pos = SYMBOL_QUICKCONNECT_POSITION, const wxSize& size = SYMBOL_QUICKCONNECT_SIZE, long style = SYMBOL_QUICKCONNECT_STYLE );

    /// Destructor
    ~QuickConnect();

    /// Initialises member variables
    void Init();

    /// Creates the controls and sizers
    void CreateControls();

////@begin QuickConnect event handler declarations

    /// wxEVT_COMMAND_TEXT_ENTER event handler for ID_TEXTCTRL3
    void OnOkClick( wxCommandEvent& event );

////@end QuickConnect event handler declarations

////@begin QuickConnect member function declarations

    /// Retrieves bitmap resources
    wxBitmap GetBitmapResource( const wxString& name );

    /// Retrieves icon resources
    wxIcon GetIconResource( const wxString& name );
////@end QuickConnect member function declarations

    /// Should we show tooltips?
    static bool ShowToolTips();

////@begin QuickConnect member variables
    wxTextCtrl* m_Server;
    wxTextCtrl* m_Port;
////@end QuickConnect member variables
};

#endif
    // _QUICKCONNECT_H_
